/*
 * @Author: QinJiu
 * @Date: 2022-07-20 10:13:49
 * @LastEditors: Qinjiu
 * @LastEditTime: 2022-07-20 15:31:14
 * @Description: token文件
 */
import Cookies from "js-cookie";

const TokenKey = "vue_app_token";

// 获取token
export function getToken() {
  return Cookies.get(TokenKey);
}

// 设置token
export function setToken(token) {
  return Cookies.set(TokenKey, token);
}

// 清除token
export function removeToken() {
  return Cookies.remove(TokenKey);
}
